package soccer.model.fixture;

import java.util.ArrayList;
import java.util.List;

import soccer.model.matches.Match;
import soccer.model.team.Team;

public class FixtureDAOImpl implements FixtureDAO{

	@Override
	public int createFixture(List weeks,List teams) {
		Match match=null;
		List add=null;
		
		/*for(int i=0;i<teams.size()-1;i++){
			for(int j=i;j<teams.size();j+=2)
			   match.setHomeTeam((Team)teams.get(j));
				  for(int m=i+1;m<teams.size();m+=2)
					match.setAwayTeam((Team)teams.get(m));
		
		}*/
		for(int i=0;i<teams.size();i++){
			if(i%2==0){
				match.setHomeTeam((Team) teams.get(i));
			}
			else{
				match.setAwayTeam((Team) teams.get(i));
			}
		}
		return 0;
		
	}

	@Override
	public void updateFixture(Match currentMatch) {
		// TODO Auto-generated method stub
		
	}

}
